package com.ferry.lock.engine.factory;

import com.ferry.lock.engine.LockEngine;
import com.ferry.lock.engine.zookeeper.ZKLockEngine;

/**
 * Created by daiyong
 */
public class EngineFactory {

	private static final String ZK = "ZK";
	private static final String REDIS = "REDIS";

	public static LockEngine getEngine(String name) {
		switch (name) {
			case ZK:
				return new ZKLockEngine();
			case REDIS:
				return null;
			default:
				return null;
		}
	}

}
